home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / gnu / oleo-1_4.lha / oleo-1.4 / utils.h < prev    next >
C/C++ Source or Header  |  1993-05-21  |  3KB  |  92 lines

  1. #ifndef UTILSH
  2. #define UTILSH
  3.  
  4. /*    Copyright (C) 1992, 1993 Free Software Foundation, Inc.
  5.  
  6. This program is free software; you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation; either version 2, or (at your option)
  9. any later version.
  10.  
  11. This program is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. GNU General Public License for more details.
  15.  
  16. You should have received a copy of the GNU General Public License
  17. along with this software; see the file COPYING.  If not, write to
  18. the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  19. /*  t. lord    Sun Aug  9 20:37:34 1992    */
  20.  
  21. #include <stdio.h>
  22. #include "funcdef.h"
  23. #include "global.h"
  24.  
  25. extern char *argv_name;
  26. extern int __make_backups;
  27. extern int __backup_by_copying;
  28.  
  29. #ifdef __STDC__
  30. extern VOIDSTAR ck_malloc (size_t);
  31. extern VOIDSTAR ck_calloc (size_t);
  32. extern VOIDSTAR ck_realloc (void *,size_t);
  33. extern char * ck_savestr (char *);
  34. extern char * ck_savestrn (char *, int);
  35. extern void ck_free (VOIDSTAR);
  36. #define ck_remalloc(OLD, SIZE) \
  37.   ((OLD) ? ck_realloc ((OLD), (SIZE)) : ck_malloc (SIZE))
  38.  
  39. extern void get_usr_stats (int, char **);
  40. extern void set_usr_stats (int, char **);
  41.  
  42. extern char *char_to_string (int);
  43. extern int string_to_char (char **);
  44. extern FILE *xopen_with_backup (const char *,const char *);
  45. extern int xclose (FILE *);
  46. extern char *err_msg (void);
  47. extern char *mk_sprintf (char *, ...);
  48.  
  49. extern void init_mem (void);
  50. extern void init_eval (void);
  51. extern void init_refs (void);
  52. extern void init_cells (void);
  53. extern VOIDSTAR init_stack (void);
  54.  
  55. extern VOIDSTAR pop_stack (VOIDSTAR);
  56. extern void push_stack (VOIDSTAR, VOIDSTAR);
  57. extern void flush_stack (VOIDSTAR);
  58. #else
  59. extern VOIDSTAR ck_malloc ();
  60. extern VOIDSTAR ck_calloc ();
  61. extern VOIDSTAR ck_realloc ();
  62. extern VOIDSTAR ck_free ();
  63. extern char * ck_savestr ();
  64. extern char * ck_savestrn ();
  65. #define ck_free free
  66. #define ck_remalloc(OLD, SIZE) \
  67.   ((OLD) ? ck_realloc ((OLD), (SIZE)) : ck_malloc (SIZE))
  68.  
  69. extern void get_usr_stats ();
  70. extern void set_usr_stats ();
  71.  
  72. extern char *char_to_string ();
  73. extern int string_to_char ();
  74. extern FILE *xopen_with_backup ();
  75. extern int xclose ();
  76. extern char *err_msg ();
  77. extern char *mk_sprintf ();
  78.  
  79. extern void init_mem ();
  80. extern void init_eval ();
  81. extern void init_refs ();
  82. extern void init_cells ();
  83. extern VOIDSTAR init_stack ();
  84.  
  85. extern VOIDSTAR pop_stack ();
  86. extern void push_stack ();
  87. extern void flush_stack ();
  88. #endif
  89.  
  90. #endif
  91.  
  92.